using System.Collections.Generic;
using System.IO;
using System.Reflection;

namespace Drill.Core
{
	public class ExecutingDirectoryRootPathProvider : IRootPathProvider
	{
		/// <summary>
		/// Gets a list of valid root paths.
		/// </summary>
		/// <returns>A list of valid root paths.</returns>
		public virtual IList<string> GetRootPaths()
		{
			return 
				new List<string>
					{
						Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
					};
		}
	}
}